from django.conf.urls import url, include
from django.contrib import admin
from . import views
# urlpatterns = [
#     url('^comment/$',views.Comment.as_view()),
#     url(r'^orders/settlement/$', views.OrderSettlementView.as_view()),
#     url(r'^orders/commit/$', views.OrderCommitView.as_view()),
#
# ]
urlpatterns = [

    # url('^$', views.Comment.as_view()),
    # 去结算
    url(r'^orders/settlement/$', views.OrderSettlementView.as_view()),
    # 去结算

    #######################
    url(r'^orders/commit/$', views.OrderCommitView.as_view()),
    # 获取新增评论界面,并提交评论
    url('^orders/comment/$',views.Comment.as_view()),
    # 评论成功
    url(r'^orders/success/$', views.OrderSuccessView.as_view()),
    # 商品详情评论 获取评论
    url('^comments/(?P<sku_id>\d+)/$',views.GetComment.as_view()),
    # 订单展示
    url(r"^orders/info/(?P<page>\d+)/$", views.OrderManagementView.as_view(), name="order_info"),

]